﻿@using System.Web.Mvc.Ajax
@using System.Web.Mvc.Html
@using System.Web.Mvc;
@model IEnumerable<Entities.AuditedOperation>
<a href="#">
    <img alt="" src="@Links.Content.images.icon_info_png"
                            width="14" height="14" hspace="7" vspace="2" border="0" align="right" /></a><a href="#"><img
                                alt="" src="@Links.Content.images.icon_print_png" width="16" height="16" hspace="4"
                                border="0" align="right" /></a>
@{
    if (Model.Any())
    {
        var grid = new WebGrid(source: Model, rowsPerPage: 20, ajaxUpdateContainerId: "grid");    
    @grid.GetHtml(htmlAttributes: new { id = "grid" }, tableStyle: "main_table", headerStyle: "columns_head",
 columns: grid.Columns(
                                             grid.Column("ObjectName", "File Name", format: @<text>@Html.Popup((string)item.ObjectName, MVC.Reports.Summary.Actions.ActionNames.FileSummary, (int)item.ID, 'f')</text>),
                  grid.Column("FullPathName", "Directory Path", format: @<text>@Html.ToolTip((string)item.FullPathName, 10)</text>),

grid.Column("PolicyName", "Policy"),
grid.Column("FileSize", "Size"),
grid.Column("OwnerAccount", "Owner"),
grid.Column("ClientMachineName", "ClientMachineName"),
                     grid.Column("ServerName", "Host", format: @<text>@Html.Popup((string)item.ServerName, MVC.Reports.Summary.Actions.ActionNames.MachineTopAccessors, (int)item.ID, 's')</text>),
grid.Column("UserAccount", "User Account"),
grid.Column("ReceivedTime", "Date")))
    
    }
    else
    {
    <p>
        No data found</p> 
    }
}
